# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.

class ApplicationController < ActionController::Base
  helper :all # include all helpers, all the time

  # See ActionController::RequestForgeryProtection for details
  # Uncomment the :secret if you're not using the cookie session store
  protect_from_forgery # :secret => 'dbb237fd7d3a4fb586c9c62e08ed347a'

  def show_message(message,color='red')
    flash[:notice]="<div style='margin:10px auto;width:85%;border:1px solid #999; padding:20px;color:#{color}'>#{message}</div>"
  end 
end
